home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / FROMUTS / UNIXLIB37B / src / unix / c / link < prev    next >
Text File  |  1991-06-18  |  372b  |  24 lines

  1. static char sccs_id[] = "@(#) link.c 2.0 "__DATE__" HJR";
  2.  
  3. /* link.c (c) Copyright 1990 H.Rogers */
  4.  
  5. #include <errno.h>
  6.  
  7. #include "sys/unix.h"
  8. #include "sys/os.h"
  9.  
  10. int link(register char *ofile,register char *nfile)
  11. {
  12. os_error *e;
  13.  
  14. ofile = __uname(ofile,0);
  15. nfile = __uname(nfile,1);
  16.  
  17. if (e = os_fsctrl(25,ofile,nfile,0))
  18.   {
  19.   __seterr(e);
  20.   return(-1);
  21.   }
  22. return(0);
  23. }
  24.